/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-04-10
 * Time: 15:32
 */
public class Test {
    public static void eat(Animal a) {
        a.eat();
    }
    public static void main(String[] args) {
        Cat cat = new Cat("柚子","雌",2);
        Dog dog = new Dog("球球","雄",1);
        Animal bird = new Bird("泡芙","雌",2);
        eat(cat);
        eat(dog);
        eat(bird);
    }
}
